package team.freeroom.hotelmanage.service;

import org.springframework.stereotype.Service;
import team.freeroom.hotelmanage.repository.entity.User;
import java.util.List;
import java.util.Map;

@Service
public interface UserService {
    User findByUsername(String username);
    int add(User user);
    int edit(User user);
    int editPassword(User user);
    int delete(String ids);
    List<User> findList(Map<String, Object> queryMap);
    int getTotal(Map<String, Object> queryMap);
    /**
     * 判断用户是否存在
     */
    boolean isExist(String username,Long id);
}
